package dome01;

public class Proxy {
    private Host host;

    public Proxy(Host host) {
        this.host = host;
    }

    public Proxy() {
    }

    public  void rent(){
        host.rent();
        look();
        fare();
        run();

    }
    public void run(){
        System.out.println("中介跑路了，钱被卷了！！！");
    }
    public  void look(){
        System.out.println("中介带你看房子");

    }
    public void fare(){
        System.out.println("中介要你付钱了");
    }

}
